/**
 * @description 菜单数据管理
 * @author zhu_liangyu
 * @since 2021/12/09
 */

import { AxiosResponse } from "axios";
import { OrgServiceApi } from "./_org";
import service from "@/api";
import { SYSTEM_CONFIG } from "@/config/system";

class AppMenuServiceApi extends OrgServiceApi {
  queryById(pk: string, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/queryById?pk=" + pk + "," + SYSTEM_CONFIG.APP_ID;
    return service.get(url, { params });
  }
}
const appMenuServiceApi = new AppMenuServiceApi("/AppMenuService");

export default appMenuServiceApi;
